package com.eian.boot.config.mybatis.listener;

import com.eian.boot.mybatis.core.listener.AbstractFieldInsertListener;
import com.eian.boot.security.utils.SessionHelper;
import org.springframework.stereotype.Component;

/**
 * @author alex.meng
 * @createTime 2025-09-04 15:24
 * @description 数据插入基础数据填充
 **/
@Component
public class FieldInsertListener extends AbstractFieldInsertListener {
    @Override
    protected Long getOperatorId() {
        return SessionHelper.getUserId();
    }
}
